<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Prototype</title>
<script type="text/javascript">
	var Person = function(name, age) {
		this.name = name;
		this.age = age;
		this.introduce = function() {
			alert("My name is " + this.name + ".I'm " + this.age);
		};
	}
	var person1 = new Person("Somebody", 21);
	var person2 = new Person("Someone", 22);
	alert(person1.introduce == person2.introduce);
</script>
<script type="text/javascript">
	var Person = function(name, age) {
		this.name = name;
		this.age = age;
	};
	Person.introduce = function() {
		alert("My name is " + this.name + ".I'm " + this.age);
	};
	var person1 = new Person("Somebody", 21);
	var person2 = new Person("Someone", 22);
	alert(person1.introduce == person2.introduce);
</script>
</head>
<body>

</body>
</html>